package com.junchenrobot.mes.controller;

import com.junchenrobot.mes.service.WinderService;
import com.junchenrobot.mes.vo.WinderVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping(value = "/mes/resource", produces = "application/json;charset=UTF-8")
public class WinderController {
    
    
    private final WinderService winderService;
    
    @Autowired
    public WinderController(WinderService winderService) {
        this.winderService = winderService;
    }
    
    
    @GetMapping("/winder")
    public List<WinderVo> listWinder() {
        return winderService.listWinder();
    }
    
    
}
